package com.itheima.domain.db;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author 请不要叫我高司令
 * @Date 2022/3/22 19:06
 * @Version 1.0
 */

//公告
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Announcement implements Serializable {

    private Long id;
    //标题
    private String title;
    //描述
    private String description;


    @TableField(fill = FieldFill.INSERT)
    private Date created;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updated;


}
